./sepolicy-inject --auto  -P sepolicy -s telnetd -t port -c tcp_socket -p name_bind
./sepolicy-inject --auto  -P sepolicy -s telnetd -t rootfs -c file -p read,getattr,execute,execute_no_trans,entrypoint,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t unlabeled -c file -p read,write,getattr
./sepolicy-inject --auto  -P sepolicy -s telnetd -t fuse -c dir -p read,write,search 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t shell_exec -c file -p read,execute,execute_no_trans,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c capability -p dac_override,net_bind_service,net_admin,net_raw sys_boot,sys_tty_config mknod 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c dir -p read,write,getattr,search
./sepolicy-inject --auto  -P sepolicy -s telnetd -t system_file -c file -p execute_no_trans,ioctl,read,getattr,lock,open,execute
./sepolicy-inject --auto  -P sepolicy -s telnetd -t system_data_file -c file -p read,write
./sepolicy-inject --auto  -P sepolicy -s telnetd -t log_device -c dir -p read,write,create 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c tcp_socket -p read,write,create,getattr,bind,listen,accept,setopt
./sepolicy-inject --auto  -P sepolicy -s telnetd -t properties_device -c file -p execute 
./sepolicy-inject --auto  -P sepolicy -s init -t init -c process -p fork,sigchld,sigkill,sigstop,signull,signal,getsched,setsched,getsession,getpgid,setpgid,getcap,setcap,getattr,setexec,setfscreate,noatsecure,setrlimit,execmem,setsockcreate 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t selinuxfs -c file -p write
./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c system -p syslog_read
./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c security -p setenforce
./sepolicy-inject --auto  -P sepolicy -s telnetd -t ipdevc_exec -c file -p read,write,getattr
./sepolicy-inject --auto  -P sepolicy -s telnetd -t node -c tcp_socket -p listen,node_bind
./sepolicy-inject --auto  -P sepolicy -s telnetd -t system_data_file -c dir -p read,write
./sepolicy-inject --auto  -P sepolicy -s telnetd -t fuse -c file -p read,write
./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c file -p read,write
./sepolicy-inject --auto  -P sepolicy -s init -t telnetd -c process -p transition
./sepolicy-inject --auto  -P sepolicy -s telnetd -t init -c process -p sigchld
./sepolicy-inject --auto  -P sepolicy -s telnetd -t init -c fd -p use
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c process -p fork,sigchld,sigkill,sigstop,signull,signal,getsched,setsched,getsession,getpgid,setpgid,getcap,setcap,getattr,setexec,setfscreate,noatsecure,setrlimit,execmem,setsockcreate 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c lnk_file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t tmpfs -c chr_file -p read,write
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c file -p ioctl,read,write,getattr,lock,append,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c netlink_kobject_uevent_socket -p ioctl,read,write,create,getattr,setattr,lock,append,bind,connect,getopt,setopt,shutdown
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c dir -p ioctl,read,getattr,search,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t rootfs -c file -p read,write,getattr,execute,entrypoint,open 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t sysfs -c file -p read,write
./sepolicy-inject --auto  -P sepolicy -s telnetd -t system_prop -c property_service -p set
./sepolicy-inject --auto  -P sepolicy -s telnetd -t property_socket -c sock_file -p write
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c unix_dgram_socket -p ioctl,read,write,create,getattr,setattr,lock,append,bind,connect,getopt,setopt,shutdown,sendto
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c capability -p dac_override,net_admin,sys_boot,sys_tty_config,mknod
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c lnk_file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t input_device -c dir -p ioctl,read,getattr,search,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t tty_device -c chr_file -p ioctl,read,write,getattr,lock,append,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t init -c unix_stream_socket -p connectto
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c unix_stream_socket -p ioctl,read,write,create,getattr,setattr,lock,append,bind,connect,listen,accept,getopt,setopt,shutdown,connectto
./sepolicy-inject --auto  -P sepolicy -s telnetd -t app_data_file -c file -p write
./sepolicy-inject --auto  -P sepolicy -s init -t telnetd -c process -p noatsecure,sigkill
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c fifo_file -p ioctl,read,write,getattr,lock,append,open 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t pstorefs -c file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t input_device -c chr_file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t telnetd -c fd -p use
./sepolicy-inject --auto  -P sepolicy -s telnetd -t device -c dir -p write,add_name,remove_name
./sepolicy-inject --auto  -P sepolicy -s telnetd -t null_device -c chr_file -p read,write,open,ioctl
./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c fd -p use
./sepolicy-inject --auto  -P sepolicy -s telnetd -t properties_device -c file -p read,write
./sepolicy-inject --auto  -P sepolicy -s init -t telnetd -c process -p rlimitinh,siginh,noatsecure
./sepolicy-inject --auto  -P sepolicy -s telnetd -t rootfs -c dir -p search,read,write,open,getattr
./sepolicy-inject --auto  -P sepolicy -s telnetd -t device -c dir -p search,read,write,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t rootfs -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t system_file -c dir -p search,read,write,open
./sepolicy-inject --auto  -P sepolicy -s system_server -t telnetd -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s shell -t telnetd -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s system_server -t telnetd -c file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s shell -t telnetd -c file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t ptmx_device -c chr_file -p read,write,open,ioctl
./sepolicy-inject --auto  -P sepolicy -s telnetd -t devpts -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t devpts -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t properties_device -c chr_file -p read,write,open,ioctl
./sepolicy-inject --auto  -P sepolicy -s telnetd -t owntty_device -c chr_file -p read,write,open,ioctl
./sepolicy-inject --auto  -P sepolicy -s telnetd -t system_data_file -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t system_file -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t properties_device -c chr_file -p read,write,open,ioctl
./sepolicy-inject --auto  -P sepolicy -s telnetd -t proc -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t proc -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t proc -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t proc -c file -p ioctl,read,getattr,lock,open

./sepolicy-inject --auto  -P sepolicy -s telnetd -t sysfs -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t sysfs -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t sysfs -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t sysfs -c file -p ioctl,read,getattr,lock,open

./sepolicy-inject --auto  -P sepolicy -s telnetd -t properties_device -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t properties_device -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t properties_device -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t properties_device -c file -p ioctl,read,getattr,lock,open

./sepolicy-inject --auto  -P sepolicy -s telnetd -t selinuxfs -c filesystem -p getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t selinuxfs -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t selinuxfs -c file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t selinuxfs -c chr_file -p read,write,open,ioctl,getattr 

./sepolicy-inject --auto  -P sepolicy -s telnetd -t logdw_socket -c sock_file -p read,write,open 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t logd -c unix_dgram_socket -p ioctl,read,write,create,getattr,setattr,lock,append,bind,connect,getopt,setopt,shutdown,sendto

./sepolicy-inject --auto  -P sepolicy -s debuggerd -t telnetd -c filesystem -p getattr 
./sepolicy-inject --auto  -P sepolicy -s debuggerd -t telnetd -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s debuggerd -t telnetd -c file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s debuggerd -t telnetd -c chr_file -p read,write,open,ioctl,getattr 

./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t kernel -c file -p ioctl,read,getattr,lock,open

./sepolicy-inject --auto  -P sepolicy -s telnetd -t init -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t init -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t init -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t init -c file -p ioctl,read,getattr,lock,open


./sepolicy-inject --auto  -P sepolicy -s telnetd -t ueventd -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t ueventd -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t ueventd -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t ueventd -c file -p ioctl,read,getattr,lock,open

./sepolicy-inject --auto  -P sepolicy -s telnetd -t logd -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t logd -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t logd -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t logd -c file -p ioctl,read,getattr,lock,open

./sepolicy-inject --auto  -P sepolicy -s telnetd -t mediaserver -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t mediaserver -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s telnetd -t mediaserver -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s telnetd -t mediaserver -c file -p ioctl,read,getattr,lock,open

./sepolicy-inject --auto  -P sepolicy -s platform_app -t app_data_file -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s platform_app -t app_data_file -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s platform_app -t app_data_file -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s platform_app -t app_data_file -c file -p ioctl,read,getattr,lock,open


./sepolicy-inject --auto  -P sepolicy -s init -t selinuxfs -c filesystem -p getattr 
./sepolicy-inject --auto  -P sepolicy -s init -t selinuxfs -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s init -t selinuxfs -c file -p ioctl,read,getattr,lock,open
./sepolicy-inject --auto  -P sepolicy -s init -t selinuxfs -c chr_file -p read,write,open,ioctl,getattr 

./sepolicy-inject --auto  -P sepolicy -s init -t kernel -c security -p setenforce

./sepolicy-inject --auto  -P sepolicy -s init -t properties_device -c dir -p search,read,write,open,getattr 
./sepolicy-inject --auto  -P sepolicy -s init -t properties_device -c chr_file -p read,write,open,ioctl,getattr 
./sepolicy-inject --auto  -P sepolicy -s init -t properties_device -c lnk_file -p ioctl,read,getattr,open
./sepolicy-inject --auto  -P sepolicy -s init -t properties_device -c file -p ioctl,read,getattr,lock,open




